package com.dnzx.client.impl;

import java.util.List;

import org.dnzx.framework.page.PageResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dnzx.client.IRoleMenuClient;
import com.dnzx.model.system.RoleMenuBO;
import com.dnzx.service.IRoleMenuService;

/**
 * <p>cms系统后台角色资源client实现类</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.rcss.client.service.impl
 * 
 * @date 2017/9/21 21:58
 */
@Service
public class RoleMenuClientImpl implements IRoleMenuClient {
	
	private static Logger logger = LoggerFactory.getLogger(RoleMenuClientImpl.class);
	
	@Autowired
	private IRoleMenuService roleMenuService;
	
	@Override
    public void save(RoleMenuBO roleMenuBO) {
        this.roleMenuService.save(roleMenuBO);
    }
    
    @Override
    public void delete(Long id) {
        this.roleMenuService.delete(id);
    }

    @Override
    public void update(RoleMenuBO roleMenuBO) {
        this.roleMenuService.update(roleMenuBO);
    }
    
    @Override
    public RoleMenuBO get(Long id) {
        return this.roleMenuService.get(id);
    }

	@Override
	public List<RoleMenuBO> queryList(RoleMenuBO roleMenuBO) {
		return this.roleMenuService.queryList(roleMenuBO);
	}
	
	@Override
	public PageResult<List<RoleMenuBO>> queryPage(RoleMenuBO roleMenuBO, PageResult<List<RoleMenuBO>> pageResult) {
		return this.roleMenuService.queryPage(roleMenuBO, pageResult);
	}
	
}
